package com.dongdongsongcan.app.activity;

import android.content.Context;
import android.os.Bundle;

import com.dongdongsongcan.app.R;
import com.dongdongsongcan.app.fragment.UserFragment;
import com.su.dolphin.utils.mgr.DpActivityManager;
import com.su.dolphin.utils.mgr.DpFragmentManager;
import com.su.dolphin.view.activity.BaseActivity;

public class ShoppingCarActivity extends BaseActivity
{
    
    public static void startFrom(Context context) {
        DpActivityManager.i().startActivity(context, ShoppingCarActivity.class);
    }
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_user);
        super.onCreate(savedInstanceState);
        initFragments();
    }
    
    protected void initFragments() {
        DpFragmentManager.i().switchFragment(this, R.id.user_fragment_container, UserFragment.class);
    }
    
    @Override
    public void onBackPressed() {
        if (!DpFragmentManager.i().goBack(this)) {
            finish();
        }
    }
    
    @Override
    public void initView() {}
    
    @Override
    public void setListener() {
        
    }
    
    @Override
    public void initData() {}
    
}
